package com.web.zsqqimengzhixing.service;

import com.web.zsqqimengzhixing.pojo.Articles;
import com.web.zsqqimengzhixing.pojo.Comments;
import com.web.zsqqimengzhixing.pojo.Upvotes;

import java.util.List;

public interface ArticlesService {
    /**
     * 查询所有文章
     *
     * @return
     */
    List<Articles> select();
    /**
     * 添加文章
     *
     * @param articles
     */
    void addart(Articles articles);

    /**
     * 添加评论
     * @param comments
     */
    void addcom(Comments comments);
    /**
     * 查询评论
     *
     * @param articleId
     * @return
     */
    List<Comments> selectcom(Integer articleId);
    /**
     * 点赞
     * @param
     */
    void upvotes(Upvotes upvotes);
    /**
     * 查询点赞
     * @param articleId
     * @return
     */
    List<Upvotes> selectupvotes(Integer articleId);
}
